<script type='text/javascript' src='<?php echo $this->webroot; ?>js/plugins/validationEngine/languages/jquery.validationEngine-es.js'></script>
<script type='text/javascript' src='<?php echo $this->webroot; ?>js/plugins/validationEngine/jquery.validationEngine.js'></script>    
<div class="page-header">
                    <div class="icon">
                        <span class="ico-pen-2"></span>
                    </div>
                    <h1>Nuevo Usuario <small>FORMULARIO DE REGISTRO</small></h1>
                </div>
<div class="row-fluid">
    <div class="span8">
    <div class="block">
                            <div class="head">                                
                                <h2>Datos Personales del Usuario</h2>
                                                                 
                            </div>                                        
                            <div class="data-fluid">
                                <?php echo $this->Form->create('User', array('id' => 'validate') );?>
                                <div class="row-form">
                                    <div class="span3">Nombre:</div>
                                    <div class="span9"><?php echo $this->Form->text('nombre',array('placeholder' => 'Nombre completo de la persona','class'=>'validate[required]'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Codigo:</div>
                                    <div class="span9"><?php echo $this->Form->text('codigo',array('placeholder' => 'Inserte su codigo de codigo del usuario','class'=>'validate[required,custom[number]]'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Correo Electronico:</div>
                                    <div class="span9"><?php echo $this->Form->text('correo_electronico',array('placeholder' => 'Inserte su correo Electronico Ej. viva@hotmail.com','class'=>'validate[required]'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Ciudad:</div>
                                    <div class="span9"><?php echo $this->Form->select('ciudad',$departamento, array('placeholder' => 'Seleccione la Ciudad'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Zona:</div>
                                    <div class="span9"><?php echo $this->Form->select('zona',$zona, array('placeholder' => 'Seleccione la Zona'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Usuario</div>
                                    <div class="span9"><?php echo $this->Form->text('username',array('placeholder' => 'Inserte su numero de usuario Ej. 76666890','class'=>'validate[required]'));?></div>
                                </div>
                                <div class="row-form">
                                    <div class="span3">Password:</div>
                                    <div class="span9"><?php echo $this->Form->password('password',array('placeholder' => 'Insgrese su password seguro','class'=>'validate[required]'));?></div>
                                </div>
                                <div class="row-form">
                                <?php echo $this->Form->submit('GUARDAR USUARIO',array('class' => 'btn btn-success"'));?>
                                <?php echo $this->Form->end();?> 
                                </div>
                                                       
                            </div>
                        </div>
    </div>
</div>